<div class="row wrapper white-bg page-heading" style="padding-bottom: 80px;">
  <div class="container-fluid">
    <h2>{{newsAddCtrl.newsId?"编辑新闻媒体":"新增新闻媒体"}}</h2>
  </div>
  <hr/>
  <div class="container-fluid">
    <div class="col-md-10 col-md-offset-1 col-table">
      <table class="table table-bordered">
        <!--图书名称-->
        <tr class="col-table-tr">
          <td>图书名称</td>
          <td>
            <div class="col-md-offset-1 col-md-8">
              <div class="form-group">
                <input ng-model="newsAddCtrl.caption" class="form-control" placeholder="请输入新闻名称">
              </div>
            </div>
          </td>
        </tr>
        <!--图书主图-->
        <tr class="col-table-tr">
          <td>
            图书主图
            <br>
            (150*150)
          </td>
          <td>
            <div class="col-md-offset-1 col-md-5">
              <div class="notice-icon-upload">
                <img ng-src="{{newsAddCtrl.picture}}" style="width:100px;height:100px;">
              </div>
              <br>
              <div class="notice-icon-upload">
                <span class="btn btn-primary btn-imgUpload">
                  <input type="file" nv-file-select uploader="newsAddCtrl.fileUpload.pictureUploader"
                         options="{fileType:'picture'}" accept="image/*">上传图书主图</span>
              </div>
            </div>
          </td>
        </tr>
        <!--图书标签-->
        <tr class="col-table-tr">
          <td>图书标签</td>
          <td>
            <div class="col-md-offset-1 col-md-4">
              <div class="form-group">
                <select class="form-control" ng-model="newsAddCtrl.tag" >
                  <option value="读者推荐">读者推荐</option>
                  <option value="新书推荐">新书推荐</option>
                  <option value="店长推荐">店长推荐</option>
				          <option value="热门作者">热门作者</option>
                </select>
              </div>
            </div>
          </td>
        </tr>
        <!--图书-->
        <tr class="col-table-tr">
          <td>简介</td>
          <td>
            <div class="col-md-offset-1 col-md-11">
              <div class="form-group">
                <textarea ng-model="newsAddCtrl.content" rows="6" class="form-control" placeholder="请输入新闻简介"></textarea>
              </div>
            </div>
          </td>
        </tr>
        
        <!--商品详情-->
        <tr class="col-table-tr">
          <td>图书详情</td>
          <td>
            <div class="col-md-offset-1 col-md-10">
              <div class="form-group">
                <summernote style="width:80%;" ng-model="newsAddCtrl.detail" lang="zh-CN"
                            config="newsAddCtrl.options"></summernote>
              </div>
            </div>
          </td>
        </tr>
        
      </table>
      <button type="submit" class="btn btn-default col-md-3 col-md-offset-2" ui-sref="home.news.newsList">取消
      </button>
      <button type="submit" class="btn btn-info col-md-3 col-md-offset-1" ng-click="newsAddCtrl.submit()">提交
      </button>
    </div>
  </div>
</div>
